package com.gitee.hermer.engine.jars.starter.web.commons;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

import com.gitee.hermer.engine.jars.core.domain.EngineConstant;

@Component("multipartResolver")
public class EngineCommonsMultipartResolver extends CommonsMultipartResolver implements InitializingBean{
	
	@Override
	public void afterPropertiesSet() throws Exception {
		setDefaultEncoding(EngineConstant.DEFAULT_ENCODING);
		setMaxInMemorySize(40960);
		setMaxUploadSize(10485760000l);
	}

}
